/**
 * Created by siqing on 2017/4/28.
 */
window.onload=function () {
    var  S = new Swiper('#swiper-container',{
        centeredSlides : true,
        slidesPerView : 4,
        spaceBetween : 20,
        slidesOffsetBefore : -30,
        slidesOffsetAfter: -200,
    })

};
function tabTurn(v){
    var div_ = document.getElementsByClassName('hidden');
    var li_ = document.getElementById("tab").getElementsByTagName("li");
    for(var i=0;i<div_.length;i++)
    {
        var _div_ = div_[i];
        var _li_ = li_[i];
        if(_div_ == document.getElementById('book'+v))
        {
            _div_.style.display = 'block';
            _li_.className='action';
        }else{
            _div_.style.display = 'none';
            _li_.className=' ';
        }
    }
}
